<form class="layui-form" lay-filter="form">
    {:form_input('username','text',['verify'=>'required','tips'=>'Between 4 and 25 characters.'])}
    {:form_input('mobile','text',['verify'=>'phone'])}
    {:form_upload('avatar',$formData,['cropper'=>1])}
    {:form_input('email','text',['verify'=>'email'])}
    {:form_select('level_id',$memberLevel,['verify'=>'required','label'=>'Level','multiple'=>1] ,'id,name')}
    {:form_selectn('city_ids',[],['url'=>__u('member.member/getgroup'),'multiple'=>1,'verify'=>'required']
    ,'id,title',$formData?$formData['city_ids']:'')}
    {:form_radio('sex',['Secrecy','Man','Female'],['filter'=>'sex'],1)}
    {:form_submitbtn()}
</form>